package com.pansoft.kline.model;

import java.util.List;

/**
 * @author : zzj
 * @e-mail : zhangzhijun@pansoft.com
 * @date : 2018/11/26 15:27
 * @desc : 行情详情页的分析市场深度图的model
 * @version: 1.0
 */
public class DealRealAnalyzeDepthModel {

    /**
     * code : 0
     * ticker : {"id":"958","high":4227.26,"low":3651.89,"buy":4133.75,"sell":4134.01,"last":4134.01,"vol":9069.857,"open":3878.36,"time":1543217197241}
     * depth : {"asks":[[4137.04,0.018],[4137.09,0.042],[4138.22,0.052],[4138.52,0.0568],[4139.25,0.1058],[4139.71,0.5878],[4140.94,0.9494],[4141.81,1.2054],[4142.65,1.2254],[4149.09,1.2684],[4149.1,2.4663],[4153.81,2.5053],[4154.47,2.6862],[4157.75,3.6862],[4157.76,3.7893],[4166.43,3.8293],[4166.51,13.8293],[4169.65,14.0274],[4175.4,14.2027],[4178.42,14.3693],[4179.31,14.5538],[4180.33,14.6533],[4185.49,14.8242],[4186.37,15.0666],[4187.58,15.2803],[4190.78,15.36],[4193.23,15.5519],[4194.87,15.7762],[4195.51,16.0435],[4197.63,16.2543],[4199,16.3543],[4203.92,16.3993],[4206.39,16.6826],[4215.45,16.7887],[4216.77,16.9099],[4220,17.9099],[4222.13,18.1173],[4223,18.2259],[4224.13,22.6439],[4229.96,22.8889],[4230,23.8889],[4237.5,24.0649],[4256,25.0648],[4300,25.0673],[4375,26.0673],[4380,26.1555],[4426.95,26.3727],[4430.42,29.3727],[4444,29.5227],[4488.88,29.5917]],"bids":[[4133.07,0.0629],[4131.3,0.5449],[4131.27,0.9143],[4131.22,0.9153],[4129.85,0.9274],[4127.8,1.319],[4125.65,1.339],[4120.18,1.362],[4120.12,1.3746],[4116.42,1.3956],[4116.4,2.6788],[4116.39,3.2473],[4112.59,4.2473],[4112.58,4.9535],[4108.07,4.9755],[4108,5.8129],[4107.56,6.4728],[4106.07,16.4728],[4105.94,16.912],[4102.97,17.9267],[4097.09,19.0206],[4094.75,19.8153],[4094.14,20.7906],[4092.12,21.6701],[4089.91,22.6216],[4089.84,23.2441],[4087.45,24.2252],[4084.22,24.9473],[4081.78,24.957],[4075.61,26.0164],[4072.31,26.9971],[4050.64,31.9971],[4000,33.3052],[3986.55,38.3052],[3900,39.3052],[3886.13,39.8196],[3877.13,40.0267],[3867,41.0267],[3847.13,41.1001],[3800,42.1116],[3780,42.1314],[3765,42.6314],[3750,42.6414],[3721.3,42.9616]]}
     */

    private int code;
    private TickerBean ticker;
    private DepthBean depth;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public TickerBean getTicker() {
        return ticker;
    }

    public void setTicker(TickerBean ticker) {
        this.ticker = ticker;
    }

    public DepthBean getDepth() {
        return depth;
    }

    public void setDepth(DepthBean depth) {
        this.depth = depth;
    }

    public static class TickerBean {
        /**
         * id : 958
         * high : 4227.26
         * low : 3651.89
         * buy : 4133.75
         * sell : 4134.01
         * last : 4134.01
         * vol : 9069.857
         * open : 3878.36
         * time : 1543217197241
         */

        private String id;
        private double high;
        private double low;
        private double buy;
        private double sell;
        private double last;
        private double vol;
        private double open;
        private long time;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public double getHigh() {
            return high;
        }

        public void setHigh(double high) {
            this.high = high;
        }

        public double getLow() {
            return low;
        }

        public void setLow(double low) {
            this.low = low;
        }

        public double getBuy() {
            return buy;
        }

        public void setBuy(double buy) {
            this.buy = buy;
        }

        public double getSell() {
            return sell;
        }

        public void setSell(double sell) {
            this.sell = sell;
        }

        public double getLast() {
            return last;
        }

        public void setLast(double last) {
            this.last = last;
        }

        public double getVol() {
            return vol;
        }

        public void setVol(double vol) {
            this.vol = vol;
        }

        public double getOpen() {
            return open;
        }

        public void setOpen(double open) {
            this.open = open;
        }

        public long getTime() {
            return time;
        }

        public void setTime(long time) {
            this.time = time;
        }
    }

    public static class DepthBean {
        private List<List<Double>> asks;
        private List<List<Double>> bids;

        public List<List<Double>> getAsks() {
            return asks;
        }

        public void setAsks(List<List<Double>> asks) {
            this.asks = asks;
        }

        public List<List<Double>> getBids() {
            return bids;
        }

        public void setBids(List<List<Double>> bids) {
            this.bids = bids;
        }
    }
}
